package BehavioralModel.ResponsibilityChainModel;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-12-08 11:32:00
 */
public class Client {

    public static void main(String[] args) {

        CommonManager commonManager = new CommonManager("经理");
        Majordomo majordomo = new Majordomo("总监");
        GeneralManager generalManager = new GeneralManager("总经理");

        commonManager.setSuperior(majordomo);
        majordomo.setSuperior(generalManager);

        Request request = new Request("请假","病假2天",2);
        commonManager.RequestApplication(request);

        Request request1 = new Request("请假","病假2天",8);
        commonManager.RequestApplication(request1);


    }
}


